package jmu.edu.yjc.controller;

import jmu.edu.yjc.domain.ResponseResult;
import jmu.edu.yjc.service.TypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yjc
 * @date 2023/3/12 21:27
 */
@RestController
@RequestMapping("/system/type")
public class TypeController {
    @Resource
    private TypeService typeService;
    @GetMapping("/list")
    public ResponseResult list(){
        return ResponseResult.okResult(typeService.list());
    }
}
